﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Guan.CMS.Web.ViewModels
{
    public class SystemVersionViewModel
    {
        public SystemVersionViewModel()
        {
            this.LoadedAssemblies = new List<LoadedAssembly>();
        }

        [DisplayName("Asp.Net版本")]
        public string AspNetInfo { get; set; }

        [DisplayName("完全信任级别")]
        public string IsFullTrust { get; set; }

        [DisplayName("版本")]
        public string Version { get; set; }

        [DisplayName("操作系统")]
        public string OperatingSystem { get; set; }

        [DisplayName("服务器时间"), DisplayFormat(DataFormatString = "{0:yyyy-MM-dd HH:mm:ss}")]
        public DateTime ServerLocalTime { get; set; }

        [DisplayName("服务器时区")]
        public string ServerTimeZone { get; set; }

        [DisplayName("格林威治标准时间"),DisplayFormat(DataFormatString = "{0:yyyy-MM-dd HH:mm:ss}")]
        public DateTime UtcTime { get; set; }

        [DisplayName("已加载程序集")]
        public IList<LoadedAssembly> LoadedAssemblies { get; set; }

        public partial class LoadedAssembly
        {
            public string FullName { get; set; }

            public string Location { get; set; }
        }
    }
}